package edu.kpi.pzks2.simulator.results;

import edu.kpi.pzks2.graph.Node;
import edu.kpi.pzks2.simulator.processing.Task;

public class ProcHistoryBean extends HistoryBean {
    private int taskId;
    private boolean isWaiting;
    private final Node node;
    
    public ProcHistoryBean(final Task task) {
        this.taskId = task.getId();
        this.node = task.getNode();
    }
    
    public ProcHistoryBean(final Task task, final boolean isWaiting) {
        this.taskId = task.getId();
        this.isWaiting = isWaiting;
        this.node = task.getNode();
    }
    
    public int getTaskId() {
        return taskId;
    }
    
    public boolean isWaiting() {
        return isWaiting;
    }
    
    public Node getNode() {
        return node;
    }
    
    @Override
    public String toString() {
        return Integer.toString(taskId);
    }
}
